import datetime
from google.appengine.ext import db
from google.appengine.tools import bulkloader
import model

class PresidentLoader(bulkloader.Loader):
  def __init__(self):
    bulkloader.Loader.__init__(self, 'SpeechCategory',
                               [('id', int),
                                ('president', int),
                                ('category', int),
                                ('date', lambda x: datetime.datetime.strptime(x, '%m/%d/%Y').date())])
loaders = [SpeechCategoryLoader]
